package cn.itacm.pattern.creational.singleton;

public class SingletonA {
	private static SingletonA singleton = null;

	private SingletonA() {
	}

	public static SingletonA getInstance() {
		if (singleton == null)
			singleton = new SingletonA();
		return singleton;
	}

	public String getName() {
		return "SingletonA";
	}
}
